package View;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.SpringLayout;
import javax.swing.JLabel;
import java.awt.Toolkit;
import javax.swing.ImageIcon;

public class About {

	static public JFrame frmAbout;

	/**
	 * Create the application.
	 */
	public About() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		try {
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		frmAbout = new JFrame();
		frmAbout.setIconImage(Toolkit.getDefaultToolkit().getImage("D:\\hoctap\\LTJava\\Bai Tap\\doan\\ServerGUI\\res\\Pink-icon.png"));
		frmAbout.setTitle("About");
		frmAbout.setBounds(100, 100, 305, 203);
		frmAbout.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		SpringLayout springLayout = new SpringLayout();
		frmAbout.getContentPane().setLayout(springLayout);
		
		JLabel label = new JLabel("0912452");
		frmAbout.getContentPane().add(label);
		
		JLabel lblTrnHongThnh = new JLabel("Tr\u1EA7n Ho\u00E0ng Th\u1ECBnh");
		springLayout.putConstraint(SpringLayout.WEST, lblTrnHongThnh, 27, SpringLayout.EAST, label);
		springLayout.putConstraint(SpringLayout.NORTH, label, 0, SpringLayout.NORTH, lblTrnHongThnh);
		frmAbout.getContentPane().add(lblTrnHongThnh);
		
		JLabel label_1 = new JLabel("0912594");
		springLayout.putConstraint(SpringLayout.NORTH, label_1, 17, SpringLayout.SOUTH, label);
		springLayout.putConstraint(SpringLayout.EAST, label, 0, SpringLayout.EAST, label_1);
		frmAbout.getContentPane().add(label_1);
		
		JLabel lblNguynThKim = new JLabel("Nguy\u1EC5n Th\u1ECB Kim Th\u00FAy");
		springLayout.putConstraint(SpringLayout.NORTH, lblNguynThKim, 0, SpringLayout.NORTH, label_1);
		springLayout.putConstraint(SpringLayout.WEST, lblNguynThKim, 0, SpringLayout.WEST, lblTrnHongThnh);
		frmAbout.getContentPane().add(lblNguynThKim);
		
		JLabel label_2 = new JLabel("0912596");
		springLayout.putConstraint(SpringLayout.EAST, label_2, 0, SpringLayout.EAST, label);
		frmAbout.getContentPane().add(label_2);
		
		JLabel lblNguynPhMai = new JLabel("Nguy\u1EC5n Ph\u00FA Mai Trang");
		springLayout.putConstraint(SpringLayout.NORTH, lblNguynPhMai, 20, SpringLayout.SOUTH, lblNguynThKim);
		springLayout.putConstraint(SpringLayout.NORTH, label_2, 0, SpringLayout.NORTH, lblNguynPhMai);
		springLayout.putConstraint(SpringLayout.WEST, lblNguynPhMai, 0, SpringLayout.WEST, lblTrnHongThnh);
		frmAbout.getContentPane().add(lblNguynPhMai);
		
		JLabel lblDanhSchThnh = new JLabel("Danh s\u00E1ch th\u00E0nh vi\u00EAn");
		springLayout.putConstraint(SpringLayout.NORTH, lblTrnHongThnh, 17, SpringLayout.SOUTH, lblDanhSchThnh);
		springLayout.putConstraint(SpringLayout.NORTH, lblDanhSchThnh, 30, SpringLayout.NORTH, frmAbout.getContentPane());
		springLayout.putConstraint(SpringLayout.WEST, lblDanhSchThnh, 31, SpringLayout.WEST, frmAbout.getContentPane());
		frmAbout.getContentPane().add(lblDanhSchThnh);
		
		JLabel label_3 = new JLabel("");
		springLayout.putConstraint(SpringLayout.EAST, label_3, -6, SpringLayout.WEST, label);
		label_3.setIcon(new ImageIcon("D:\\hoctap\\LTJava\\Bai Tap\\doan\\ServerGUI\\res\\Cat-Brown-icon.png"));
		frmAbout.getContentPane().add(label_3);
		
		JLabel label_4 = new JLabel("");
		springLayout.putConstraint(SpringLayout.NORTH, label_4, 6, SpringLayout.SOUTH, label_3);
		springLayout.putConstraint(SpringLayout.EAST, label_4, -6, SpringLayout.WEST, label_1);
		frmAbout.getContentPane().add(label_4);
		
		JLabel label_5 = new JLabel("");
		springLayout.putConstraint(SpringLayout.EAST, label_5, -237, SpringLayout.EAST, frmAbout.getContentPane());
		springLayout.putConstraint(SpringLayout.SOUTH, label_3, -7, SpringLayout.NORTH, label_5);
		springLayout.putConstraint(SpringLayout.WEST, label_1, 6, SpringLayout.EAST, label_5);
		springLayout.putConstraint(SpringLayout.SOUTH, label_5, 0, SpringLayout.SOUTH, label_1);
		label_5.setIcon(new ImageIcon("D:\\hoctap\\LTJava\\Bai Tap\\doan\\ServerGUI\\res\\Cat-Brown-icon.png"));
		frmAbout.getContentPane().add(label_5);
		
		JLabel label_6 = new JLabel("");
		label_6.setIcon(new ImageIcon("D:\\hoctap\\LTJava\\Bai Tap\\doan\\ServerGUI\\res\\Cat-Brown-icon.png"));
		springLayout.putConstraint(SpringLayout.SOUTH, label_6, 0, SpringLayout.SOUTH, label_2);
		springLayout.putConstraint(SpringLayout.EAST, label_6, -6, SpringLayout.WEST, label_2);
		frmAbout.getContentPane().add(label_6);
	}
}
